using UnityEngine;
using System.Collections;

public class NavigationManager : MonoBehaviour {

	void Start () {
		GameObject.DontDestroyOnLoad(this.gameObject);
		
		Application.LoadLevel("game_main_menu");
	}
	
	void Update () {
	
	}
	
	/*
	 * This function receives a button that has the name
	 * 	of the level it wants to load as its tag. 
	 */
	public void LoadLevel(Object obj)
	{
		if(obj != null)
		{
			Application.LoadLevel( (obj as GameObject).tag );
		}
	}
}
